//
//  Global Style
// --------------------------------------------------


html {
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}

body {
    line-height: @line-height-base;
    color: @text-color-base;
    font-size: @font-size-base;
    font-family: @font-family-base;
    -webkit-font-smoothing: antialiased;
    font-smoothing: antialiased;
}

h6 {
    font-size: 12px;
}

h5 {
    font-size: 14px;
}

h4 {
    font-size: 18px;
}

h3 {
    font-size: 24px;
}

h2 {
    font-size: 30px;
}

h1 {
    font-size: 36px;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: 600;

    small {
        font-size: 65%;
        color: #777;
        font-weight: 400;
    }
}

ul, ol {
    list-style: none;
}

a {
    color: @link-color;
    text-decoration: none;

    &:hover {
        text-decoration: underline;
    }
}

mark {
    margin: 0 4px;
    padding: 2px 4px;
    background-color: #fcf8e3;
    border-radius: @border-radius-base;

    &.primary {
        background-color: lighten(@primary-color, 40%);
        color: @primary-color;
    }

    &.green {
        background-color: @state-success-bg;
    }

    &.red {
        background-color: @state-danger-bg;
    }
}


//  Utility Classes
// --------------------------------------------------

.fl {
    float: left;
}

.fr {
    float: right;
}

.clearfix {
    .clearfix();
}

.left-align {
    text-align: left;
}

.center-align {
    text-align: center;
}

.right-align {
    text-align: right;
}

// No Text Select
.no-select {
    .user-select(none);
}

// Text Truncate
.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.circle {
    border-radius: 50%;
}

// Text Colors
.primary {
    color: @primary-color !important;
}
.green {
    color: @green !important;
}
.red {
    color: @red !important;
}
.teal {
    color: @teal !important;
}
.yellow {
    color: @yellow !important;
}

// Backgound Colors
.bg-primary {
    background-color: @primary-color;
    color: #fff;
}
.bg-green {
    background-color: @green;
    color: #fff;
}
.bg-red {
    background-color: @red;
    color: #fff;
}
.bg-teal {
    background-color: @teal;
    color: #fff;
}
.bg-yellow {
    background-color: @yellow;
    color: #fff;
}

// Font Size
.font-size(@size) when (@size > 11) {
    .font@{size} {
        font-size: unit(@size, px) !important;
    }
    .font-size(@size - 1);
}
.font-size(36);